<?php


namespace app\src\redis;

/**
 *
 *
 * User: Implement hdjahs@qq.com
 * Date: 2020/12/5 22:15
 */

/** The redisOp structure defines a Redis Operation, that is an instance of
 * a command with an argument vector, database ID, propagation target
 * (REDIS_PROPAGATE_*), and command pointer.
 *
 * redisOp 结构定义了一个 Redis 操作，
 * 它包含指向被执行命令的指针、命令的参数、数据库 ID 、传播目标（REDIS_PROPAGATE_*）。
 *
 * Currently only used to additionally propagate more commands to AOF/Replication
 * after the propagation of the executed command.
 *
 * 目前只用于在传播被执行命令之后，传播附加的其他命令到 AOF 或 Replication 中。
 */
class redisOp
{
    // 参数
    public $argv;

    // 参数数量、数据库 ID 、传播目标
    public $argc;

    public $dbid;

    public $target;

    // 被执行命令的指针
    public $cmd;

    public function __construct()
    {
        $this->argv = new redisObject();
        $this->cmd = new redisCommand();
    }
}